import axios from "@/http/request.js";

//租户接口
const tenantApi = {
  login(data) {
    return axios({
      method: "post",
      url: "/tenant/login",
      data,
    });
  },
  getAllTenant(data) {
    return axios({
      method: "post",
      url: "/tenant/getAll",
      data,
    });
  },
  getTenantInfoById(data) {
    return axios({
      method: "post",
      url: "/tenant/getInfoById",
      data,
      headers: { "Content-Type": "application/json" },
    });
  },
  getAllExpiredTenant(data) {
    return axios({
      method: "post",
      url: "/tenant/getAllExpiredTenant",
      data,
    });

  }
    
};
export default tenantApi;
